package com.ptswitch.material.service;

import java.util.List;

import com.ptswitch.material.model.material.Bom;

public interface BomService {
    static final int Init_BomMaterials = 1 << 0;

    Bom findById(long id);

    Bom findById(long id, int init);

    Bom findByCodeAndVersion(String code, String version);

    void update(Bom oldModel, Bom newModel);

    void saveEx(Bom model);

//	List<Bom> findAll(boolean initialize);

    void deleteAll();

    void delete(Bom bom);

    List<Bom> findAll(long first, long size);

    long countAll();

    void save(Bom bom);

    List<Bom> findLike(String like, long first, long size);

    long countLike(String like);

    List<Bom> findAll();
}
